/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import DAO.DAO_DomainList;
import Entity.DomainList;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author THANHDAT
 */
@ManagedBean
@RequestScoped
public class DomainListBean {

    List<DomainList> lstDomain = new ArrayList<DomainList>();
    int id;
    String title;
    
    /** Creates a new instance of DomainListBean */
    public DomainListBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<DomainList> getLstDomain() {
        return lstDomain;
    }

    public void setLstDomain(List<DomainList> lstDomain) {
        this.lstDomain = lstDomain;
    }

    public List<DomainList> showDomain() {
        DAO_DomainList domain = new DAO_DomainList();
        lstDomain = domain.showDomainList();
        return lstDomain;
    }
}
